<template>
  <view class="container">
    <view class="device">
      <view class="list">
        <view class="list_left">
          <view>设备编号</view>
        </view>
        <view class="list_right">
          <view>{{ info.equipmentId }}</view>
        </view>
      </view>
      <view class="list">
        <view class="list_left">
          <view>设备名称</view>
        </view>
        <view class="list_right">
          <view>{{ info.equipmentName }}</view>
        </view>
      </view>
      <view class="list">
        <view class="list_left">
          <view>设备描述</view>
        </view>
        <view class="list_right">
          <view>{{ info.equipmentDescription }}</view>
        </view>
      </view>
      <view class="list">
        <view class="list_left">
          <view>设备类型</view>
        </view>
        <view class="list_right">
          <view>{{ info.equipmentType }}</view>
        </view>
      </view>
      <view class="list">
        <view class="list_left">
          <view>设备型号</view>
        </view>
        <view class="list_right">
          <view>{{ info.equipmentModel }}</view>
        </view>
      </view>
      <view class="list">
        <view class="list_left">
          <view>备注</view>
        </view>
        <view class="list_right">
          <view>{{ info.remark }}</view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    // 跳转轨迹
    onNavigationBarButtonTap(e) {
      if(e.index == 0) {
        uni.navigateTo({ url: './detail?equipmentId=' + this.info.equipmentId })
      }
    },
    data() {
      return {
        info: {},
      }
    },
    onLoad(options) {
      if(options) {
        this.info = JSON.parse(options.data)
      }
    },
    methods: {

    },
  }
</script>

<style lang="scss" scoped>
  .device {
    width: 100%;
    border-top: 1px solid #e9e7e7;

    .list {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20rpx 25rpx;
      border-bottom: 1px solid #e9e7e7;
      font-size: 30rpx;
      line-height: 50rpx;
      color: #7b7b7b;

      .list_left {}

      .list_right {
        width: 60%;
        text-align: right;
      }
    }
  }
</style>
